package com.dingyh.shopwebbackground.service.impl;

import com.dingyh.shopwebbackground.entity.Business;
import com.dingyh.shopwebbackground.mapper.BusinessMapper;
import com.dingyh.shopwebbackground.service.BusinessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-23
 */
@Service
public class BusinessServiceImpl extends ServiceImpl<BusinessMapper, Business> implements BusinessService {

    @Autowired
    BusinessMapper businessMapper;

    @Override
    public Business selectByIdBusiness(String id) {
        return businessMapper.selectByIdBusiness(id);
    }

    @Override
    public Business selectByUserId(String userId) {
        return businessMapper.selectByUserId(userId);
    }

    @Override
    public List<Business> getReviewBusinessList() {
        return businessMapper.getReviewBusinessList();
    }
    @Override
    public List<Business> getReviewedList() {
        return businessMapper.getReviewedList();
    }

}
